package com.acs.code5.service.impl;

import com.acs.code5.ds.dao.SysUserDao;
import com.acs.code5.ds.entity.SysUser;
import com.acs.code5.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private SysUserDao sysUserDao;

    public Integer findUserID(String username){
        SysUser user = sysUserDao.findByUsername(username);
        if (user == null){
            return null;
        }
        return user.getId();
    }
}
